package com.finance.rule.export;

import com.finance.base.constant.BaseConstants;
import com.finance.base.exception.BaseException;
import com.finance.framework.lang.BeanUtils;
import com.finance.rule.bean.pojo.SettlementRegion;
import com.finance.util.export.ExportBeanParse;

/**
 * Created by ljg on 2017/4/10.
 */
public class SettlementRegionParse extends ExportBeanParse<SettlementRegion,SettlementRegionParseBean> {

    @Override
    protected SettlementRegionParseBean parse(SettlementRegion settlementRegion) {
        SettlementRegionParseBean bean=new SettlementRegionParseBean();
        try {
            BeanUtils.copyProperties(bean,settlementRegion);
        } catch (Exception e) {
           throw new BaseException(BaseConstants.ERR_COPYBEAN);
        }
        return bean;
    }

}
